<?php
//phpinfo();die();
ini_set('display_errors',1);
//CBF
$serverName = '199.249.234.44';
$usr="Cbfweb10@X";
$pwd="cbfweb10@X";
$db="CBF";

//AMAZON
$serverName = "mycredixqa.cgxdvtbgfmj7.us-east-1.rds.amazonaws.com";
$usr="bdawscredix";
$pwd="bdcrdx2013$#";

//LOCAL
$serverName = "(local)";
$usr = "cbfweb";
$pwd = "cbfweb";
$db = "CBF";


$connectionInfo = array( "Database"=>$db, "UID"=>$usr, "PWD"=>$pwd);
$conn = sqlsrv_connect( $serverName, $connectionInfo);
if( $conn )
{
     echo "Connection established.\n";
}
else
{
     echo "Connection could not be established.\n";
     die( print_r( sqlsrv_errors(), true));
}